<!DOCTYPE html>
    <html xmlns=http://www.w3.org/1999/xhtml xmlns:bd=http://www.baidu.com/2010/xbdml>
<head>

    <meta http-equiv="Content-Type" content="text/html" charset="utf-8">
    <title>添加仓储信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
   <link rel="stylesheet" href="/pc/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/pc/layout/css/font_eolqem241z66flxr.css" media="all" />
       <script type="text/javascript" src="http://api.map.baidu.com/getscript?v=2.0&ak=U25vSd26q851cuSCjMCXuFkYYemWxvRs&services=&t=20170707103901"></script>
</head>
<body class="childrenBody" style="margin-left:10px">
    <form class="layui-form">
        {{ csrf_field() }}
        <div class="layui-form-item">
            <label class="layui-form-label">店铺名称</label>
            <div class="layui-input-block" style="width: 25em;">
                <input type="text" name="name" class="layui-input" lay-verify="required"   placeholder="请输入商铺名称">
            </div>
        </div> 
        <div class="layui-form-item">
            <label class="layui-form-label">店铺地址</label>
            <div class="layui-input-block" style="width: 25em;">
                <input type="text" name="address" class="layui-input" lay-verify="required"  placeholder="请务必输入真实位置">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">经度</label>
            <div class="layui-input-block" style="width: 25em;">
                <input type="number" name="long" class="layui-input" lay-verify="required"  placeholder="请输入经度">
            </div>
        </div> 
        <div class="layui-form-item">
            <label class="layui-form-label">纬度</label>
            <div class="layui-input-block" style="width: 25em;">
                <input type="number" name="lat" class="layui-input" lay-verify="required"  placeholder="请输入纬度">
            </div>
        </div> 
        <div class="layui-form-item">
           <label class="layui-form-label">所属区域</label>
           <div class="layui-input-block" style="width: 25em;">
               <select name="type" id="area" lay-verify="required" lay-search="" lay-filter="type">
                   <option value="">请选择区域</option>
                   @if(!empty($areaInfo))
                       @foreach($areaInfo as $v)
                                <option value="{{$v['id']}}">{{$v['name']}}</option>
                       @endforeach
                   @endif
               </select>
           </div>
        </div>   
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="createStore">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <!-- 地图 -->
       <div class="layui-elem-quote layui-quote-nm" id="allmap" style="width:50em;height:43em;border-left: 5.4px solid #18A890;left:30%;margin-top: -26%;">
       </div>
</body>
<script type="text/javascript" src="/staff/layout/js/jquery.min.js"></script>
      <script type="text/javascript" src="/pc/layui/layui.js"></script>
      <script type="text/javascript" src="/staff/store/js/create.js"></script>
      <script src="/staff/store/js/map_new.js"></script>
</html>